package com.kifas.model.xml;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class PembelianDetailModel implements Serializable {

	private static final long serialVersionUID = 3470516287813421558L;

	private Long idDetailPembelian;

	@XmlElement(name = "barangModel", type = BarangModel.class)
	private BarangModel barang;

	private Integer qty;

	private BigDecimal discount;

	private BigDecimal discount2;

	private BigDecimal pajak;

	private BigDecimal price;

	private BigDecimal subTotal;

	private String createdBy;

	public PembelianDetailModel() {
	}

	public PembelianDetailModel(Long idDetailPembelian, BarangModel barang, SatuanModel satuan, Integer qty, BigDecimal discount, BigDecimal pajak,
			BigDecimal price, BigDecimal subTotal, String createdBy) {
		this.idDetailPembelian = idDetailPembelian;
		this.barang = barang;
		this.qty = qty;
		this.discount = discount;
		this.pajak = pajak;
		this.price = price;
		this.subTotal = subTotal;
		this.createdBy = createdBy;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getSubTotal() {
		return subTotal;
	}

	public void setSubTotal(BigDecimal subTotal) {
		this.subTotal = subTotal;
	}

	public BigDecimal getDiscount2() {
		return discount2;
	}

	public void setDiscount2(BigDecimal discount2) {
		this.discount2 = discount2;
	}

	public Long getIdDetailPembelian() {
		return idDetailPembelian;
	}

	public void setIdDetailPembelian(Long idDetailPembelian) {
		this.idDetailPembelian = idDetailPembelian;
	}

	public BarangModel getBarang() {
		return barang;
	}

	public void setBarang(BarangModel barang) {
		this.barang = barang;
	}

	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	public BigDecimal getDiscount() {
		return discount;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public BigDecimal getPajak() {
		return pajak;
	}

	public void setPajak(BigDecimal pajak) {
		this.pajak = pajak;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

}
